package com.ws.entity;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class SharedBike {
    // 单车编号
    private Integer bid;
    // 单车名称-->ofo 哈罗 摩拜
    private String bname;
    // 单车状态--> 0 已借出 1 可借状态
    private Integer status;
    // 单车借出时间
    private String borrowTime;

    public static SharedBike createBike(int bid, String bname, int status) {
        SharedBike bike = new SharedBike();
        bike.setBid(bid);
        bike.setBname(bname);
        bike.setStatus(status);
        return bike;
    }
}